package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.PerformanceAssessmentMapper;
import com.ruoyi.system.domain.PerformanceAssessment;
import com.ruoyi.system.service.IPerformanceAssessmentService;

/**
 * 考核指标--DmyService业务层处理
 *
 * @author 董明毅
 * @date 2025-06-03
 */
@Service
public class PerformanceAssessmentServiceImpl implements IPerformanceAssessmentService
{
    @Autowired
    private PerformanceAssessmentMapper performanceAssessmentMapper;

    /**
     * 查询考核指标--Dmy
     *
     * @param id 考核指标--Dmy主键
     * @return 考核指标--Dmy
     */
    @Override
    public PerformanceAssessment selectPerformanceAssessmentById(Long id)
    {
        return performanceAssessmentMapper.selectPerformanceAssessmentById(id);
    }

    /**
     * 查询考核指标--Dmy列表
     *
     * @param performanceAssessment 考核指标--Dmy
     * @return 考核指标--Dmy
     */
    @Override
    public List<PerformanceAssessment> selectPerformanceAssessmentList(PerformanceAssessment performanceAssessment)
    {
        return performanceAssessmentMapper.selectPerformanceAssessmentList(performanceAssessment);
    }

    /**
     * 新增考核指标--Dmy
     *
     * @param performanceAssessment 考核指标--Dmy
     * @return 结果
     */
    @Override
    public int insertPerformanceAssessment(PerformanceAssessment performanceAssessment)
    {
        return performanceAssessmentMapper.insertPerformanceAssessment(performanceAssessment);
    }

    /**
     * 修改考核指标--Dmy
     *
     * @param performanceAssessment 考核指标--Dmy
     * @return 结果
     */
    @Override
    public int updatePerformanceAssessment(PerformanceAssessment performanceAssessment)
    {
        return performanceAssessmentMapper.updatePerformanceAssessment(performanceAssessment);
    }

    /**
     * 批量删除考核指标--Dmy
     *
     * @param ids 需要删除的考核指标--Dmy主键
     * @return 结果
     */
    @Override
    public int deletePerformanceAssessmentByIds(Long[] ids)
    {
        return performanceAssessmentMapper.deletePerformanceAssessmentByIds(ids);
    }

    /**
     * 删除考核指标--Dmy信息
     *
     * @param id 考核指标--Dmy主键
     * @return 结果
     */
    @Override
    public int deletePerformanceAssessmentById(Long id)
    {
        return performanceAssessmentMapper.deletePerformanceAssessmentById(id);
    }
}
